require.config({
	baseUrl : "/jinandi",
	shim: {
        'jtable': ['jquery'],
        'jtable_zh': ['jtable']
    },
	paths : {
		"jquery" : "js/jquery.min",
		"layout" : "js/layout/jquery.layout-latest",
		"ican" : "js/ICanHaz",
		"jtable" : "js/jtable/jquery.jtable",
		"jui" : "js/jqueryui/jquery-ui-1.10.2.custom",
		"jtable_zh" : "js/jtable/jquery.jtable.zh-CN",
		"text" : "js/text"
	}
});

require(["jquery","jui","jtable","jtable_zh","ican"], function($) {
	require(["js/layout"], function(layout){
		$(function() {
			layout.render();
		});
	});
	$(function() {
		$("#js").click(function(){
			require(["js/com/authorit/authoritTableHtml"], function(loadHtml){
				loadHtml.loadHtml('mainContent');
			});
		});
		$("#yh").click(function(){
			require(["js/com/user/userTableHtml"], function(loadHtml){
				loadHtml.loadHtml('mainContent');
			});
		});
		$("#zy").click(function(){
			require(["js/com/res/resTableHtml"], function(loadHtml){
				loadHtml.loadHtml('mainContent');
			});
		});
		$("#yhz").click(function(){
			require(["js/com/userOrg/userOrgHtml"], function(loadHtml){
				loadHtml.loadHtml('mainContent');
			});
		});
	});
});
